import request from "@/utils/request";

// 企业担保人查询
export function getFirmList(data) {
  return request({
    url: "/guarantorInfo/compGuarantorList",
    method: "post",
    data: data,
  });
}

// 企业担保人查询详情
export function getFirmDetail(id) {
  return request({
    url: "/guarantorInfo/compGuarantorDetail/" + id,
    method: "post",
  });
}

// 企业担保人维护
export function getFirmMaintain(data) {
  return request({
    url: "/guarantorInfo/compGuarantorModify",
    method: "post",
    data: data,
  });
}

// 个人担保人查询
export function getPerList(data) {
  return request({
    url: "/guarantorInfo/persGuarantorList",
    method: "post",
    data: data,
  });
}

// 个人担保人查询详情
export function getPerDetail(id) {
  return request({
    url: "/guarantorInfo/persGuarantorDetail/" + id,
    method: "post",
  });
}

// 企业担保人维护
export function getPerMaintain(data) {
  return request({
    url: "/guarantorInfo/persGuarantorModify",
    method: "post",
    data: data,
  });
}

//尽调列表 type 1-个人 2-企业
export function getDueList(data) {
  return request({
    url: "/poc/dueDiligence/list",
    method: "post",
    data: data,
  });
}
//尽调-对私详情
export function getDueDetail(id) {
  return request({
    url: "/poc/private/query/" + id,
    method: "get",
  });
}
//尽调-对公详情
export function getPubDetail(id) {
  return request({
    url: "/proPublic/query/" + id,
    method: "get",
  });
}
//尽调-对公调查详情
export function getPubDis(data) {
  return request({
    url: "/proPublic/surveyStatement",
    method: "post",
    data: data,
  });
}

//保后检查 获取任务基本信息列表
export function getCheckList(data) {
  return request({
    url: "/basic/list",
    method: "get",
    params: data,
  });
}

//保后检查 根据任务编号获取抵押信息列表
export function getCollateralList(data) {
  return request({
    url: "/collateral/list/" + data,
    method: "get",
  });
}

//保后检查 根据任务编号查询任务基本信息
export function getBasic(data) {
  return request({
    url: "/basic/" + data,
    method: "get",
  });
}

//保后检查 根据客户编号获取检查结论信息
export function getConInfo(data) {
  return request({
    url: "/check/conclusion/info/" + data,
    method: "get",
  });
}

//保后检查 根据客户编号获取客户基本信息
export function getInfo(data) {
  return request({
    url: "/customer/info/" + data,
    method: "get",
  });
}
//保后检查 根据id获取抵押信息
export function getCollateralInfo(data) {
  return request({
    url: "/collateral/info/" + data,
    method: "get",
  });
}
//保后检查 获取影像
export function getInfoImage(data) {
  return request({
    url: "/api/images/info/" + data,
    method: "get",
  });
}
